package com.bootdo.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bootdo.system.dao.CourseTimeMapper;
import com.bootdo.system.domain.CourseTime;
import com.bootdo.system.service.CourseTimeService;

@Service("courseTimeService")
public class CourseTimeServiceImp implements CourseTimeService {
	@Autowired
	CourseTimeMapper mapper;

	@Override
	public CourseTime get(Long id) {
		return mapper.get(id);
	}

	@Override
	public List<CourseTime> list(Long courseId) {
		return mapper.listTimeByCourseId(courseId);
	}


	@Override
	public int save(CourseTime ct) {
		return mapper.save(ct);
	}

	@Override
	public int update(CourseTime c) {
		return mapper.update(c);
	}

	@Override
	public int remove(Long id) {
		return mapper.remove(id);
	}

	@Override
	public int batchSave(List<CourseTime> list) {
		return mapper.batchSave(list);
	}

	@Override
	public int removeByCouserId(Long courseId) {
		return mapper.removeByCourseId(courseId);
	}

}
